<template>
	<view>
		<view class="userInfo">
			<image class="headImage"></image>
			<view class="info">
				<text>test</text>
				<text>134566666</text>
				<text>注册时间：19992</text>
			</view>
		</view>
		<view class="inviteInfo">
			<text class="invite_title">我的推荐人</text>
			<view class="line"></view>
			<view class="invite">
				<image></image>
				<view class="invite_info">
					<view>
						<text>xxx</text>
					</view>
					<text>邀请时间：11222</text>
					<view class="phone">
						<text>绑定手机：111111</text>
						<text class="copyBtn" style="color: red;">复制</text>
					</view>
				</view>
			</view>
		</view>
		<view class="list">
             <view class="list-cell" v-for="(item,index) in datas" :key="index">
                  <view class="cell" @click="onItemClick(item)">
					  <text>{{item}}</text>
					  <view>
						  <image src="../../static/fanli/9.png"></image>
					  </view>
				  </view>
             </view>
        </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datas:['客服','帮助中心','我的助手','微信号','退出登录']
			}
		},
		methods: {
			onItemClick(item){
				if(item == '帮助中心') {
					uni.navigateTo({
						url:'../help/help'
					})
				}
			}
		}
	}
</script>

<style lang="less" scoped>
.userInfo {
	flex-direction: row;
	align-items: center;
	display: flex;
	padding-left: 50px;
	padding-top: 30px;
	.headImage {
		width: 128px;
		height: 128px;
		border-radius: 64px;
		background-color: red;
	}
	.info {
		margin-left: 20px;
		flex-direction: column;
		display: flex;
		text{
			font-size: 26px;
			color: gray;
		}
	}
}

.inviteInfo {
	margin-left: 40px;
	margin-right: 40px;
	border-radius: 20px;
	margin-top: 30px;
	background-color: white;
	padding: 10px 10px 10px 10px;
	box-shadow: 0 0 20px #F5F9FF;
	.invite_title {
		font-size: 35px;
	}
	.line {
		background-color: #F5F9FF;
		width: 100%;
		height: 1px;
		margin-top: 10px;
	}
	.invite {
		display: flex;
		flex-direction: row;
		align-items: center;
		.phone {
			display: flex;
			flex-direction: row;
		}
		.invite_info {
			display: flex;
			flex-direction: column;
			margin-left: 10px;
		}
		text {
			font-size: 26px;
			color: gray;
		}
	}
	image {
		width: 74px;
		height: 74px;
		border-radius: 37px;
		background-color: red;
	}
	.copyBtn {
		font-size: 26px;
		color: red;
		margin-left: 20px;
	}
}

.list {
	margin-top: 30px;
	.cell {
		height: 80px;
		padding-left: 40px;
		padding-right: 40px;
		align-items: center;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		text {
			font-size: 30px;
		}
		image {
			width: 22px;
			height: 22px;
		}
	}
}
</style>
